package com.x.erp.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.x.erp.model.vo.DetectionVO;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 检测单信息
 */
@MappingTable(tableName = "ERP_DETECTION")
public class Detection extends BaseObject {

	private static final long serialVersionUID = -8190865452913592896L;

	@MappingColumn(columnName = "DETECTION_ID", columnPk = true, columnLength = 32)
	private String detectionId;//检测Id
	
	@MappingColumn(columnName = "DETECTION_NO")
	private String detectionNo;//检测单编号',

	@MappingColumn(columnName = "MARKET_ID")
	private String marketId;//市场id',

	@MappingTable(tableName = "ERP_MARKET")
	private Market market;//市场信息

	@MappingColumn(columnName = "CAR_ID")
	private String carId;//车辆id',

	@MappingTable(tableName = "ERP_CAR")
	private Car car;//车辆信息

	@MappingColumn(columnName = "DETECTION_PRICE")
	private BigDecimal detectionPrice;// 评估价

	@MappingColumn(columnName = "DETECTION_RESULT")
	private String detectionResult;//检测结果

	@MappingColumn(columnName = "DETECTION_REMARK")
	private String detectionRemark;//检测备注

	@MappingColumn(columnName = "DETECTION_STATE")
	private Integer detectionState;//检测状态 0 发起 10 已派单待检测 20 已检测 30 总部审核

	@MappingColumn(columnName = "CREATE_USER_ID")
	private String createUserId;//创建人id

	@MappingColumn(columnName = "DETECT_USER_ID")
	private String detectUserId;//检测师id

	@MappingTable(tableName = "ERP_USER")
	private User user;//检测师信息

	@MappingColumn(columnName = "DETECTION_CREATE_TIME")
	private Date detectionCreateTime;//创建时间

	@MappingColumn(columnName = "DETECTION_UPDATE_TIME")
	private Date detectionUpdateTime;//修改时间


	private DetectionVO detectionVO;//检测单查询

	private List<DetectionImage> detectionImages;

	public String getDetectionId() {
		return detectionId;
	}

	public void setDetectionId(String detectionId) {
		this.detectionId = detectionId;
	}

	public String getDetectionNo() {
		return detectionNo;
	}

	public void setDetectionNo(String detectionNo) {
		this.detectionNo = detectionNo;
	}

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public Market getMarket() {
		return market;
	}

	public void setMarket(Market market) {
		this.market = market;
	}

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public BigDecimal getDetectionPrice() {
		return detectionPrice;
	}

	public void setDetectionPrice(BigDecimal detectionPrice) {
		this.detectionPrice = detectionPrice;
	}

	public String getDetectionResult() {
		return detectionResult;
	}

	public void setDetectionResult(String detectionResult) {
		this.detectionResult = detectionResult;
	}

	public String getDetectionRemark() {
		return detectionRemark;
	}

	public void setDetectionRemark(String detectionRemark) {
		this.detectionRemark = detectionRemark;
	}

	public Integer getDetectionState() {
		return detectionState;
	}

	public void setDetectionState(Integer detectionState) {
		this.detectionState = detectionState;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getDetectUserId() {
		return detectUserId;
	}

	public void setDetectUserId(String detectUserId) {
		this.detectUserId = detectUserId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getDetectionCreateTime() {
		return detectionCreateTime;
	}

	public void setDetectionCreateTime(Date detectionCreateTime) {
		this.detectionCreateTime = detectionCreateTime;
	}

	public Date getDetectionUpdateTime() {
		return detectionUpdateTime;
	}

	public void setDetectionUpdateTime(Date detectionUpdateTime) {
		this.detectionUpdateTime = detectionUpdateTime;
	}

	public List<DetectionImage> getDetectionImages() {
		return detectionImages;
	}

	public DetectionVO getDetectionVO() {
		return detectionVO;
	}

	public void setDetectionVO(DetectionVO detectionVO) {
		this.detectionVO = detectionVO;
	}

	public void setDetectionImages(List<DetectionImage> detectionImages) {
		this.detectionImages = detectionImages;
	}

}
